package STUDENT.TRANBANGTUNG.day05_20_2016.xacdinhdiem;

import java.util.Scanner;

public class View {
	public static void main(String[] args) {
		Object obj = new Object();
		Controller con = new Controller();
		double a = 0;
		double[] Darray = new double[100];
		for (int i = 0; i < 100; i++) {
			System.out.println("moi nhap gia tri vao!");
			Scanner sc = new Scanner(System.in);
			a = sc.nextDouble();
			if (a >= 0 && a <= 10) {
				Darray[i] = a;

			} else {
				System.out.println("da ket thuc nhap du lieu!");
				break;
			}
		}
		obj.setArray(Darray);
		double yeu = con.timdiemyeu(obj);
		System.out.println("yeu: " + yeu);
		double tb = con.timdiemtrungbinh(obj);
		double kha = con.timdiemkha(obj);
		double gioi = con.timdiemgioi(obj);
		System.out.println("tb: " + tb);
		System.out.println("kha: " + kha);
		System.out.println("gioi: " + gioi);
		;
	}
}
